package com.project.service;

import java.util.List;

import com.project.dto.BorrowBookRank;
import com.project.dto.ReaderBorrowRank;
import com.project.entity.BorrowReturnInfo;

public interface BorrowReturnInfoService extends
		GenericService<BorrowReturnInfo, Integer> {

	public void saveOrUpdate(BorrowReturnInfo borrowReturnInfo);

	public List<BorrowReturnInfo> getBorrowList(String bookName,
			String readerName, int pageSize, int pageNow, String... checks);

	public Integer borrowedCount(String bookName, String readerName,
			String... checks); //
	// 分页总记录数

	public BorrowReturnInfo get(String bookname, String readername);

	public List<BorrowBookRank> borrowBookRank();

	public List<ReaderBorrowRank> readerBorrowRank();

	public List<BorrowReturnInfo> get(String readerName);

	public Integer borrowedAmount(String readerName);

}
